/* global hexo */
'use strict';

var assign = require('object-assign');
var pathFn = require('path');

var config = hexo.config.urls = assign({
    path: 'urls.txt'
}, hexo.config.urls);

if (!pathFn.extname(config.path)) {
    config.path += '.txt';
}

hexo.extend.generator.register('urls', require('./lib/generator'));